//
//  GoodCommentTitleCell.m
//  B2C
//
//  Created by xiaowu on 2017/7/31.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "GoodCommentTitleCell.h"

@implementation GoodCommentTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.titleLabel.font = TextNormalFont16;
    self.titleLabel.textColor = [UIColor blackTextColor];
    
    self.subTitleLabel.font = TextNormalFont12;
    self.subTitleLabel.textColor = [UIColor gray66Color];
    
    self.titleLabel.text = @"用户评价:";
    self.subTitleLabel.text = @"查看全部";
    
//    self.firstHeartImageView.image = [UIImage imageNamed:@"heart"];
//    self.secondHeartImageView.image = [UIImage imageNamed:@"heart"];
//    self.thirdHeartImageView.image = [UIImage imageNamed:@"heart"];
//    self.fourthHeartImageView.image = [UIImage imageNamed:@"heart"];
//    self.fifthHeartImageView.image = [UIImage imageNamed:@"heart"];
    
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    

    [self.contentView addSubview:self.heartView];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.heartView.size = [HeartFiveView getFiveHeartViewSizeWithPoint:5.0 withType:HeartTypeForNormal];
    self.heartView.center = CGPointMake(self.titleLabel.right + 10 + self.heartView.width * 0.5, self.contentView.height * 0.5);
}

- (HeartFiveView *)heartView {
    if (!_heartView) {
        _heartView = [[HeartFiveView alloc] init];
    }
    return _heartView;
}

@end
